package com.taojiazheng.daoImpl.job;

import com.taojiazheng.dao.job.JobEvaluatesDao;
import com.taojiazheng.entity.Jobevaluate;
import com.taojiazheng.mapper.JobevaluateMapper;
import com.taojiazheng.vo.job.JobEvaluatesVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 赵成林
 * @date 2017/11/23 22:14
 */
@Service
public class JobEvaluatesDaoImpl  implements JobEvaluatesDao{
    @Autowired
    private JobevaluateMapper jobevaluateMapper;
    public List<JobEvaluatesVo> getList(Integer jobId) {
        //return null;
        return jobevaluateMapper.getEvaluates(jobId);
    }

    public int createJobEvaluate(Jobevaluate jobevaluate) {
        //return 0;
        return jobevaluateMapper.insert(jobevaluate);
    }
}
